CREATE SEQUENCE public."LocationDepartmentMap_LocationDepartmentMapId_seq";
CREATE TABLE public."LocationDepartmentMap"
(
    "LocationDepartmentMapId" integer NOT NULL DEFAULT nextval('"LocationDepartmentMap_LocationDepartmentMapId_seq"'::regclass),
    "DepartmentId" integer NOT NULL,
	"LocationId" integer NOT NULL,
    
    CONSTRAINT "LocationDepartmentMap_pkey" PRIMARY KEY ("LocationDepartmentMapId"),
    CONSTRAINT "FK_LocationDepartmentMap_DepartmentId" FOREIGN KEY ("DepartmentId")
        REFERENCES public."Department" ("DepartmentId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE,
    CONSTRAINT "FK_LocationDepartmentMap_LocationId" FOREIGN KEY ("LocationId")
        REFERENCES public."Location" ("LocationId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE
);